import request from "@/utils/request";
import type { AxiosPromise } from "axios";
import type { RouteRecordRaw } from "vue-router";

/**
 * 获取路由
 */
export function getRouters(): AxiosPromise<RouteRecordRaw[]> {
  return request({
    url: "/system/menu/getRouters",
    method: "get"
  });
}
